<?
// $file: control/inc/functions/time/getday.php
/************************************************************/
/*                     WDLab CMS                            */
/*              < http://www.wdlab.ru >                     */
/************************************************************/
// Original Author	 : Morozov Valentin, WDLab Group 
// Author Website 	 : http://www.wdlab.ru/
// Author Email 	 : info@wdlab.ru
// License Type   	 : GPL: See /control/manual/GPL.txt; 
// License in russian: See /control/manual/GPL_ru.txt; 
// ------------------------------------------------------------------------- //

	function getday ($day = "") {	
	
	$dayweek=date("D", $day);
		
	if ($dayweek=="Mon") $return = "Понедельник";
	if ($dayweek=="Tue") $return = "Вторник";
	if ($dayweek=="Wed") $return = "Среда";
	if ($dayweek=="Thu") $return = "Четверг";
	if ($dayweek=="Fri") $return = "Пятница";
	if ($dayweek=="Sat") $return = "Суббота";
	if ($dayweek=="Sun") $return = "Воскресенье";
	
	return $return;
	}

?>